import 'package:flustars/flustars.dart';

/// 获取屏幕相对宽度
/// [width] 宽度
/// [isFont] 是否文字
// ignore: non_constant_identifier_names
double Rem(double width, {isFont: false}) {
  return !isFont
      ? ScreenUtil.getInstance().getWidth(width)
      : ScreenUtil.getInstance().getWidthPx(width);
}
